<?php
/**
 * 应用程序入口
 * @link http://www.tintsoft.com/
 * @copyright Copyright (c) 2013 TintSoft LLC
 * @license http://www.tintsoft.com/license/
 */
// comment out the following two lines when deployed to production
defined ( 'LEAPS_DEBUG' ) or define ( 'LEAPS_DEBUG', true );
defined ( 'LEAPS_ENV' ) or define ( 'LEAPS_ENV', 'dev' );
require (__DIR__ . '/vendor/autoload.php');
require (__DIR__ . '/../framework/leaps/src/Leaps/Leaps.php');
//Leaps::init(__DIR__);
class bbbbbb
{
    public function handle()
    {
        echo '执行AA类';
    }
}
Leaps\Stdlib\Event::listen ( 'aaa.bbb', 'bbbbbb' );

Leaps\Stdlib\Event::listen ( 'aaa.bbb', function ($bbb)
{
    echo $bbb;
} );
echo 444;
Leaps\Stdlib\Event::trigger ( 'aaa.bbb','输出bbbb' );